package com.app.miwawa.api.system.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 文章视图
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年6月7日 下午3:33:24
 * @version 1.0.2016
 */
@Entity @Table(name = "vb_app_article")
public class ArticleView extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -2898646907118206170L;

	// article
	private String articleType;
	private String title;
	private String summary; 	// 文章摘要,APP显示列表时需要显示文章摘要,取文章内容的前N个字作为摘要，（老师发布文章时并不需要填写摘要，只填标题，内容，类型）
	private String content;
	private String picture;		// 文章概要图（展示文章列表时显示，取文章内第一张图片，文章无图则用默认图片）
	private String pictures; 	// 文章图片

	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	private Date createTime;

	// comment
	private int commentCount;

	// collect
	private int collectCount;

	// hits
	private int hitCount;

	// thumb
	private int thumbCount;

	// teacher(tb_system_user)
	private String teacherId;
	private String teacherName;

	// shop
	private String shopId;
	private String shopName;

	public String getArticleType() {
		return articleType;
	}

	public void setArticleType(String articleType) {
		this.articleType = articleType;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

//	public String[] getPictures() {
//		return pictures;
//	}
//
//	public void setPictures(String[] pictures) {
//		this.pictures = pictures;
//	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public int getCollectCount() {
		return collectCount;
	}

	public void setCollectCount(int collectCount) {
		this.collectCount = collectCount;
	}

	public int getHitCount() {
		return hitCount;
	}

	public void setHitCount(int hitCount) {
		this.hitCount = hitCount;
	}

	public int getThumbCount() {
		return thumbCount;
	}

	public void setThumbCount(int thumbCount) {
		this.thumbCount = thumbCount;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getPictures() {
		return pictures;
	}

	public void setPictures(String pictures) {
		this.pictures = pictures;
	}
}
